<?php
namespace Common\Model;
use Think\Model;

/**
 * 店铺-》快捷菜单
 * Class StoreShortcutMenuModel
 * @package Common\Model
 */
class StoreShortcutMenuModel extends Model  {

    protected $tableName = 'store_shortcut_menu';

    /**
     * 通过local_id获取专题信息
     * @param $local_id
     * @return mixed
     */
    public function getMsgFromLocalId($local_id){
        return $this->cache(true, 86400, 'redis')->where(['local_id' => $local_id])->order('`order` asc')->select();
    }

}